import base from './base'
import axios from './http'
import qs from 'qs'

const discounts = {
  getDiscounts (params) {
    return axios.post(`${base.pro}/api/member/collectCoupon/`, qs.stringify(params))
  },
  getAllDiscounts (params) {
    return axios.get(`${base.pro}/api/member/memberCoupon`, {
      params: params
    })
  }
}
export default discounts
